#ifndef __CFG_WARPPER_H__
#define __CFG_WARPPER_H__

#include <vector>
//#include <interface/global_data/cfg_mgr.h>
#include <interface/global_data_interface.h>

struct setting_info_t 
{
	CDialog	*dlg;
	int	value_type;
};

class cfg_wrapper
{
public:
	cfg_wrapper();
	~cfg_wrapper(){};
	void init_interface(aot::glb::cfg_mgr_help* help);
	bool read(const char *user_id = "");
	bool save();
	bool write();
	void insert_setting_info(CDialog*, int value_type);
	aot::glb::cfg_mgr_help* get_interface();


protected:
private:
	std::vector<setting_info_t> setting_info_;
	//aot::tt::iobj_auto_ptr<aot::glb::icfg_mgr> cfg_mgr_;
	aot::glb::cfg_mgr_help* cfg_mgr_help_;
};

#endif